package com.yonghui.service.impl;

import com.yonghui.dto.UserDTO;
import com.yonghui.service.UserInfoService;
import org.springframework.stereotype.Service;

import java.util.Date;

/**
 * @description: TODO
 * @author: zhangtong
 * @create: 2021-03-23 17:27
 **/
@Service
public class UserInfoServiceImpl implements UserInfoService {

    @Override
    public UserDTO getUserInfo() {
        UserDTO userDTO = new UserDTO();
        userDTO.setId(2);
        userDTO.setName("my name is zhangtong");
        userDTO.setBirthday(new Date());
        return userDTO;
    }
}
